package com.lion.ball.app.models.result;

import io.swagger.v3.oas.annotations.media.Schema;
import java.sql.Timestamp;
import java.sql.Timestamp;

/**
 * @author Chris Chan
 * Create on 2025-10-18 01:16
 * Use for: 食品动态数据 数据结果
 * Explain:
 * 
 */
@Schema(description = "食品动态数据 请求响应结果")
public class OfdFoodDataResult {
    @Schema(description = "主键", example = "1")
    private long id;
    @Schema(description = "编码", example = "1")
    private long code;
    @Schema(description = "食品编码", example = "1")
    private long foodCode;
    @Schema(description = "库存", example = "1")
    private Integer stock;
    @Schema(description = "收藏", example = "1")
    private Integer favorite;
    @Schema(description = "点赞", example = "1")
    private Integer heart;
    @Schema(description = "评论", example = "1")
    private Integer comment;
    @Schema(description = "推荐", example = "1")
    private Integer recommend;
    @Schema(description = "拉黑", example = "1")
    private Integer blacklist;
    @Schema(description = "创建时间", example = "1")
    private long createTime;
    @Schema(description = "更新时间", example = "1")
    private long updateTime;
    @Schema(description = "是否删除 0 - 未删除 1 - 已删除", example = "1")
    private int isDeleted;

    // 无参构造方法
    public OfdFoodDataResult() {
    }

    // 全参数构造方法
    public OfdFoodDataResult(long id, long code, long foodCode, Integer stock, Integer favorite, Integer heart, Integer comment, Integer recommend, Integer blacklist, long createTime, long updateTime, int isDeleted) {
        this.id = id;
        this.code = code;
        this.foodCode = foodCode;
        this.stock = stock;
        this.favorite = favorite;
        this.heart = heart;
        this.comment = comment;
        this.recommend = recommend;
        this.blacklist = blacklist;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
    }

    // 全参数create生成器
    public static OfdFoodDataResult create(long id, long code, long foodCode, Integer stock, Integer favorite, Integer heart, Integer comment, Integer recommend, Integer blacklist, long createTime, long updateTime, int isDeleted) {
        return new OfdFoodDataResult(id, code, foodCode, stock, favorite, heart, comment, recommend, blacklist, createTime, updateTime, isDeleted);
    }

    // 全参数of生成器
    public static OfdFoodDataResult of(long id, long code, long foodCode, Integer stock, Integer favorite, Integer heart, Integer comment, Integer recommend, Integer blacklist, long createTime, long updateTime, int isDeleted) {
        return new OfdFoodDataResult(id, code, foodCode, stock, favorite, heart, comment, recommend, blacklist, createTime, updateTime, isDeleted);
    }
    // region Getter和Setter方法
    public long getId() {
        return id;
    }

    public OfdFoodDataResult setId(long id) {
        this.id = id;
        return this;
    }

    public long getCode() {
        return code;
    }

    public OfdFoodDataResult setCode(long code) {
        this.code = code;
        return this;
    }

    public long getFoodCode() {
        return foodCode;
    }

    public OfdFoodDataResult setFoodCode(long foodCode) {
        this.foodCode = foodCode;
        return this;
    }

    public Integer getStock() {
        return stock;
    }

    public OfdFoodDataResult setStock(Integer stock) {
        this.stock = stock;
        return this;
    }

    public Integer getFavorite() {
        return favorite;
    }

    public OfdFoodDataResult setFavorite(Integer favorite) {
        this.favorite = favorite;
        return this;
    }

    public Integer getHeart() {
        return heart;
    }

    public OfdFoodDataResult setHeart(Integer heart) {
        this.heart = heart;
        return this;
    }

    public Integer getComment() {
        return comment;
    }

    public OfdFoodDataResult setComment(Integer comment) {
        this.comment = comment;
        return this;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public OfdFoodDataResult setRecommend(Integer recommend) {
        this.recommend = recommend;
        return this;
    }

    public Integer getBlacklist() {
        return blacklist;
    }

    public OfdFoodDataResult setBlacklist(Integer blacklist) {
        this.blacklist = blacklist;
        return this;
    }

    public long getCreateTime() {
        return createTime;
    }

    public OfdFoodDataResult setCreateTime(long createTime) {
        this.createTime = createTime;
        return this;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public OfdFoodDataResult setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public int getIsDeleted() {
        return isDeleted;
    }

    public OfdFoodDataResult setIsDeleted(int isDeleted) {
        this.isDeleted = isDeleted;
        return this;
    }

    // endregion Getter和Setter方法
}
